all: bindir init join get_name position position_stream
#move goto see

bindir: bin
	mkdir -p bin

init: init.c help/util.h
	gcc init.c -o bin/init -lmman

join: join.c help/util.h
	gcc join.c -o bin/join -lmman -lpthread

get_name: get_name.c help/util.h
	gcc get_name.c -o bin/get_name -lmman -lpthread

position: position.c help/util.h
	gcc position.c -o bin/position -lmman -lpthread

position_stream: position_stream.c help/query.h
	gcc position_stream.c -o bin/position_stream -lmman -lpthread

move: move.c help/util.h
	gcc move.c -o bin/move

goto: goto.c help/util.h
	gcc goto.c -o bin/goto

see: see.c help/query.h
	gcc see.c -o bin/see